package com.woniuxy01;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author 作者
 * @create 2025-06-05 9:32
 */
public class Test06 {
    public static void main(String[] args) {
        BigDecimal b1 = new BigDecimal("10.0");
        BigDecimal b2 = new BigDecimal("3");
        System.out.println(b1.divide(b2,6,RoundingMode.HALF_UP));
        System.out.println(b1.divide(b2,6, RoundingMode.CEILING));
        System.out.println(b1.divide(b2,6, RoundingMode.FLOOR));
        System.out.println(Math.ceil(1.1));
        System.out.println(Math.floor(1.1));



    }
}
